<?php
/**
 * @file			index.mod.php
 */

class index_mod
{

	function index_mod()
	{
	}

	/**
	 * 首页
	 *
	 *
	 */
	function default_action()
	{
		$groupon = DR('grouponCom.getGrouponTodayList', '', 0, 4);
	
		$mainG = @$groupon['rst'][0];  //主团购
		array_shift($groupon['rst']);

		TPL :: assign('mainG', $mainG);
		TPL :: assign('listG', $groupon['rst']);
		TPL :: display('index');
	}

	/**
	 * 往期团购
	 *
	 *
	 */
	function past()
	{
		$groupon = DR('grouponCom.getPastList', '', '', 0, 4);

		TPL :: assign('mainG', $rs[0]['rst']);
		TPL :: display('index');
	}


}
